From 05aa750fbe447e166c9be380ae8730744fb634be Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sat, 6 Dec 2025 13:32:38 +0100 Subject: [PATCH] config: fix default value for allow_slaac_only MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As reported by @nxhack at https://github.com/openwrt/odhcp6c/issues/131, allow_slaac_only was assigned an incorrect default value when it was moved from odhcp6c.c to config.c. Fixes: 1048fc4fb622 ("reconfigure: move all configuration functions to a new file") Signed-off-by: Álvaro Fernández Rojas --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 18b725a..f7977b4 100644 --- a/src/config.c +++ b/src/config.c @@ -85,7 +85,7 @@ void config_dhcp_reset(void) { config_dhcp.ia_na_mode = IA_MODE_TRY; config_dhcp.ia_pd_mode = IA_MODE_NONE; config_dhcp.client_options = DHCPV6_CLIENT_FQDN | DHCPV6_ACCEPT_RECONFIGURE; - config_dhcp.allow_slaac_only = -1; + config_dhcp.allow_slaac_only = 0; config_dhcp.oro_user_cnt = 0; memset(config_dhcp.message_rtx, 0, sizeof(config_dhcp.message_rtx)); config_dhcp.message_rtx[CONFIG_DHCP_SOLICIT].delay_max = DHCPV6_MAX_DELAY; -- 2.30.2